// TextException.h: interface for the TextException class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TEXTEXCEPTION_H__59E67678_20A1_4339_B5A1_1C70B996817D__INCLUDED_)
#define AFX_TEXTEXCEPTION_H__59E67678_20A1_4339_B5A1_1C70B996817D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <exception>

class TextException : public exception
{
public:
	~TextException() {}
	TextException( CONST CString& strTypeDesc = _T( "Unknown Type" ), CONST CString& strContentDesc = _T( "" ) )
		: m_strTypeDesc( strTypeDesc ), m_strContentDesc( strContentDesc ) {}

public:
	CString& GetTypeDesc() { return m_strTypeDesc; }
	CString& GetContentDesc() { return m_strContentDesc; }
	CString GetAllDesc() { return m_strTypeDesc + _T( ":  " ) + m_strContentDesc; }

private:
	CString m_strTypeDesc;
	CString m_strContentDesc;
};

#endif // !defined(AFX_TEXTEXCEPTION_H__59E67678_20A1_4339_B5A1_1C70B996817D__INCLUDED_)
